import { createRouter, createWebHistory } from 'vue-router'
import Menu from '../views/menu/menuIndex.vue'
import Info from '../views/info/infoIndex.vue'
import LoanForm from '../views/LoanForm.vue'


const routes = [
  {
    path: '/',
    redirect: '/form'
  },
  // {
  //   path: '/menu',
  //   name: 'menu',
  //   component: Menu
  // },
  // {
  //   path: '/info',
  //   name: 'info',
  //   component: Info
  // },
  {
    path: '/form',
    name: 'form',
    component: LoanForm
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router
